export interface ResponseData {
  code: number,
  message: string,
  data: any,
}


export interface GoodsPercentObj {
  name: string,
  value: number
}
export interface SupplierInfo {
  categoryCount: number,
  name: string,
  totalMoney: number,
  storeCount: number
}
export type GoodsPercentList = Array<GoodsPercentObj>
export interface GoodsPercentResponseData extends ResponseData {
  data: GoodsPercentList
}
export interface SupplierInfoResponseData extends ResponseData {
  data: SupplierInfo
}

export interface GoodsSaleRank {
  commodityId: string,
  shoppingName: string,
  salesData: string,
  salesMonth: string
}
export type GoodsSaleRankList = Array<GoodsSaleRank>

export interface GoodsSaleRankResponseData extends ResponseData {
  data: {
    list: GoodsSaleRankList
  }
}

export interface OrderAmount {
  name: string,
  value: number
}
export type OrderAmountList = Array<OrderAmount>

export interface OrderAmountResponseData extends ResponseData {
  data: OrderAmountList
}

export interface procureOrder {
  barcode: string,
  createTime: string,
  name: string,
  number: number,
  warehouseName: string
}
export type procureOrderList = Array<procureOrder>



export interface ProcureOrderResponseData extends ResponseData {
  data: procureOrderList
}

export type GoodsSaleObj = {
  commodityName: string
  supplierId: string | null,
  number: string,
  payTime: string,
  storeName: string,
  username: string,
  warehouseName: string
}
export type GoodsSaleList = Array<GoodsSaleObj>

export interface GoodsSaleResponseData extends ResponseData {
  data: GoodsSaleList
}

export type socketDataObj = { list?: procureOrderList, sellList?: GoodsSaleList }